#include<stdio.h>

int main(){
	
	/* data members */

	int number;
	int digits_counter = 0;
	int test = 1;
	int digits_summary = 0;


	/* get data from users */

	printf("Enter an integer number:\n");
	scanf("%d", &number);

	/* calculate data */

	// calculate digits in number
	while ( number >= test ){
		++digits_counter;
		test *=10;
	}

	//calculate summary of numbers
	while (number != 0) {
		int c = number % 10;
		digits_summary += c;
		number /= 10;
	}




	printf("Your numberes consist in %d digits\n", digits_counter);
	printf("Your number summary is %d\n", digits_summary);

	return 0;
}